﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using Newtonsoft.Json;
using FreeSql.DataAnnotations;

namespace VueShopApi.Entities 
{
	[JsonObject(MemberSerialization.OptIn), Table(Name = "sp_role", DisableSyncStructure = true)]
	public partial class SpRole 
	{
		[JsonProperty("role_id"), Column(Name = "role_id", DbType = "smallint(6) unsigned", IsPrimary = true, IsIdentity = true)]
		public int RoleId { get; set; }

		/// <summary>
		/// 控制器-操作,控制器-操作,控制器-操作
		/// </summary>
		[JsonProperty("ps_ca"), Column(Name = "ps_ca", StringLength = -1)]
		public string PsCa { get; set; }

		/// <summary>
		/// 权限ids,1,2,5
		/// </summary>
		[JsonProperty("ps_ids"), Column(Name = "ps_ids", StringLength = 512, IsNullable = false)]
		public string PsIds { get; set; }

		[JsonProperty("role_desc"), Column(Name = "role_desc", StringLength = -1)]
		public string RoleDesc { get; set; }

		/// <summary>
		/// 角色名称
		/// </summary>
		[JsonProperty("role_name"), Column(Name = "role_name", StringLength = 20, IsNullable = false)]
		public string RoleName { get; set; }

	}

}
